gdouble dpi);
void _gdk_screen_close (GdkScreen *screen);
+GdkWindow *gdk_screen_get_root_window (GdkScreen *screen);
+GdkWindow *gdk_get_default_root_window (void);
+
+
/*****************************************
* Interfaces provided by windowing code *
*****************************************/
return GDK_SCREEN_GET_CLASS (screen)->get_display (screen);
}
-/**
- * gdk_screen_get_root_window:
- * @screen: a #GdkScreen
- *
- * Gets the root window of @screen.
- *
- * Returns: (transfer none): the root window
- *
- * Since: 2.2
- **/
GdkWindow *
gdk_screen_get_root_window (GdkScreen *screen)
{
attr.height = height;
attr.window_type = GDK_WINDOW_TOPLEVEL;
- return gdk_window_new (gdk_screen_get_root_window (gdk_display_get_default_screen (display)),
- &attr);
+ return gdk_window_new (NULL, &attr);
}
/**
attr.height = position->height;
attr.window_type = GDK_WINDOW_TEMP;
- return gdk_window_new (gdk_screen_get_root_window (gdk_display_get_default_screen (display)),
- &attr);
+ return gdk_window_new (NULL, &attr);
}
/**
attr.height = 10;
attr.window_type = GDK_WINDOW_TEMP;
- return gdk_window_new (gdk_screen_get_root_window (gdk_display_get_default_screen (display)),
- &attr);
+ return gdk_window_new (NULL, &attr);
}
/**
* @screen: The #GdkScreen where the toplevels are located.
*
* Obtains a list of all toplevel windows known to GDK on the screen @screen.
- * A toplevel window is a child of the root window (see
- * gdk_get_default_root_window()).
+ * A toplevel window has no parent window.
*
* The returned list should be freed with g_list_free(), but
* its elements need not be freed.
return window;
}
-/**
- * gdk_get_default_root_window:
- *
- * Obtains the root window (parent all other windows are inside)
- * for the default display and screen.
- *
- * Returns: (transfer none): the default root window
- **/
GdkWindow *
gdk_get_default_root_window (void)
{